package com.wwj.admin;

import com.wwj.shiro.ShiroUser;
import org.apache.shiro.SecurityUtils;

/**
 * Created by Auser on 2016/12/15.
 */
public class BaseCommon {
    public final static String ADMIN_ROOT_PATH = "/admin";
    public final static String ADMIN_FINANCE_PATH = ADMIN_ROOT_PATH + "/finance";
    public final static String ADMIN_AGENT_PATH = ADMIN_ROOT_PATH + "/agent";
    public final static String ADMIN_CLIENT_PATH = ADMIN_ROOT_PATH + "/client";
    public final static String ADMIN_FINANCE_CHECK_PATH = ADMIN_FINANCE_PATH + "/check";
    public final static String ADMIN_FINANCE_ANALYSIS_PATH = ADMIN_FINANCE_PATH + "/analysis";
    public final static String ADMIN_AGNENT_MG_PATH = ADMIN_AGENT_PATH + "/mg";
    public final static String ADMIN_CLIENT_LIST_PATH = ADMIN_CLIENT_PATH + "/list";


    protected ShiroUser getShiroUser() {
        return (ShiroUser) SecurityUtils.getSubject().getPrincipal();
    }
}
